import request from './request.js'

const hotel = {
	//酒店列表
	getHotelList(data) {
		return request.get('/pub/getHotelList', {data})
	},
	//酒店详情
	getHotelDetail(data) {
		return request.get('/pub/getHotelDetail', {data})
	},
	//酒店相册列表/酒店相册
	getHotelPhotos(data) {
		return request.get('/pub/getHotelPhotos', {data})
	},
	//房间预定下单
	roomReserveCorder(data) {
		return request.post('/member/roomReserveCorder', data)
	},
	//房间预定支付
	pay(data) {
		return request.post('/member/pay', data)
	},
	//房间预定取消订单
	roomReserveOrderCancel(data) {
		return request.get('/member/roomReserveOrderCancel', {data})
	},
	//房间预定订单列表
	getRoomReserveOrderList(data) {
		return request.get('/member/getRoomReserveOrderList', {data})
	},
	// 删除订单
	roomReserveOrderDel(data) {
		return request.get('/member/roomReserveOrderDel', {data})
	},
	//获取房间类型
	getRoomType(data) {
		return request.get('/pub/getRoomType', {data})
	}
}
export default hotel